// in java, you use import, here you use var
var R                   = $.net.stonezhong.scripthostapp001.R;
var OnClickListener     = $.orangeScript.android.helper.ViewOnClickListener;
var Toast               = $.android.widget.Toast;

var activity = getObject(args[0]);

activity.findViewById(R.$id.true_button).setOnClickListener(OnClickListener.new(function() {
    Toast.makeText(
        activity, 
        R.$string.incorrect_toast,
        Toast.LENGTH_SHORT).show();
}));
activity.findViewById(R.$id.false_button).setOnClickListener(OnClickListener.new(function() {
    Toast.makeText(
        activity, 
        R.$string.correct_toast,
        Toast.LENGTH_SHORT).show();
}));

